<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">

</script>
<div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                 <h4 class="modal-title">合同查询</h4>
            </div>	
            <form id="contractForm"></form>		<!-- /modal-header -->
            <div class="modal-body">
         	 	<table class="table table-striped table-hover o-l-table" id="modalTable">
			<thead>
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
						<th>合同号</th>
						<th>合同名称</th>
						<th>供应商号</th>
						<th>供应商名称</th>
						<th>区域</th> 
						<th>所属门店</th>
				</tr>
			</thead>
			<tbody>
			<c:forEach items="${contractList}" var="associatedContract">
				<tr data-herf="${contextPath}/biz/contract/associated/${associatedContract.id}/view" data-target="_self">
					<td class="o-l-tab-ckb" >
						<input type="checkbox" data-ckb-id="${associatedContract.id}">
					</td>
					<td>${associatedContract.contractNo}</td>
					<td>${associatedContract.subject}</td>
					<td >${associatedContract.supplierNo}</td>
					<td >${associatedContract.supplierName}</td>
					<td >${associatedContract.area}</td> 
					<td >${associatedContract.store}</td> 
				</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="o-l-page">
			<div class="col-sm-6">
				<ul class="pagination">
					<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
					<li class="disabled"><a href="#">1</a></li>
					<li class="disabled"><a href="#">下一页 &#187;</a></li>
				</ul>
			</div>
			<div class="col-sm-6">
				<span class="pull-right">
					到第<input class="form-control input-sm input-goto" type="text">页
					<button class="btn btn-sm btn-primary" role="button">go</button>
				</span>
			</div>
		</div>
            </div>			
            <!-- /modal-body -->
            <div class="modal-footer">
              <!--   <button type="button" id="ok"  onclick="btnOK_click()"  class="btn btn-primary" onclick="">确定</button> -->
                <a class="btn btn-primary" type="button" role="button" onclick="btnOK_click()" id="ok">确定</a>
                 <button type="button"  class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>			
            <!-- /modal-footer -->
        </div>         
        <!-- /modal-content -->
    </div>     
</body>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>